package np13.sddb;

import java.util.List;

import np13.Slime;
import np13.Smell;

/**
 * Represents a record. A record consists of a slime and the lands which it has
 * been sent to. These lands are represented as a list of smells.
 */
public class Result {

	/**
	 * The slime.
	 */
	private final Slime slime;

	/**
	 * The lands visited by the slime.
	 */
	private final List<Smell> record;

	public Result(Result display) {
		this.slime = display.getSlime();
		this.record = display.getRecord();
	}

	/**
	 * Creates a record.
	 * 
	 * @param slime
	 *            The slime of interest.
	 * @param record
	 *            The places visited by the slime.
	 */
	public Result(Slime slime, List<Smell> record) {
		this.slime = slime;
		this.record = record;
	}

	/**
	 * @return The lands visited by the slime.
	 */
	public List<Smell> getRecord() {
		return record;
	}

	/**
	 * @return The slime.
	 */
	public Slime getSlime() {
		return slime;
	}
}
